package com.way.mall.api.fallback;

import com.way.mall.api.IOrderFeign;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class OrderFeignFallback implements FallbackFactory<IOrderFeign> {

    @Override
    public IOrderFeign create(Throwable throwable) {
        return orderId -> null;
    }
}
